package com.springbootee.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.springbootee.Common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.springbootee.Mapper.UserMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

@Data
@ToString
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "用户信息",value = "用户信息")
@TableName("User")
public class User extends BaseEntity {
        @ApiModelProperty(value = "用户ID",position = 1)
        private Long userId;
        @ApiModelProperty(value = "用户名",position = 1)
        private String userName;
        @ApiModelProperty(value = "用户账号",position = 2)
        private  String userAccount;
        @ApiModelProperty(value = "用户密码(加密)",position = 3)
        @JsonInclude
        private String userPassword;
        @ApiModelProperty(value = "用户令牌",position = 4)
        private  String userToken;
        @ApiModelProperty(value = "用户邮箱",position = 5)
        private  String userEmail;
        @ApiModelProperty(value = "用户电话",position = 6)
        private  String userPhone;
        @ApiModelProperty(value = "用户介绍",position = 7)
        private  String userIntroduce;
        @ApiModelProperty(value = "用户描述",position = 8)
        private  String userDescription;
        @ApiModelProperty(value = "用户性别(1男/2女)",position = 9)
        private  String userSex;
}
